{% with form = Forms.teams.TeamEditForm(obj=team) %}
{% from "admin/macros/forms.html" import render_extra_fields %}
<form id="team-info-edit-form" method="POST">
	<div class="form-group">
		{{ form.name.label }}
		{{ form.name(class="form-control") }}
	</div>
	<div class="form-group">
		{{ form.email.label }}
		{{ form.email(class="form-control") }}
	</div>
	<div class="form-group">
		{{ form.password.label }}
		{{ form.password(class="form-control") }}
	</div>
	<div class="form-group">
		{{ form.website.label }}
		{{ form.website(class="form-control") }}
	</div>
	<div class="form-group">
		{{ form.affiliation.label }}
		{{ form.affiliation(class="form-control") }}
	</div>
	<div class="form-group">
		{{ form.country.label }}
		{{ form.country(class="form-control custom-select") }}
	</div>

	{{ render_extra_fields(form.extra) }}

	<div class="form-group">
		<div class="form-check form-check-inline">
			{{ form.hidden(class="form-check-input") }}
			{{ form.hidden.label(class="form-check-label") }}
		</div>
		<div class="form-check form-check-inline">
			{{ form.banned(class="form-check-input") }}
			{{ form.banned.label(class="form-check-label") }}
		</div>
	</div>
	<div id="results">

	</div>
	{{ form.submit(id="update-team", class="btn btn-primary btn-outlined float-right modal-action") }}
</form>
{% endwith %}